using System.Data;
using BBX.Common;
using BBX.Entity;
using BBX.Forum;
using BBX.Web.UI;

namespace BBX.Web
{
	public class usercpcreaditstransferlog : UserCpPage
	{
		public System.Int32 creditslogcount;
		public DataTable creditsloglist = new DataTable();
		public System.Boolean isshowmsg = !string.IsNullOrEmpty(DNTRequest.GetString("paysuccess"));

		protected override void ShowPage()
		{
            pagetitle = "用户控制面板";
			if (!IsLogin())
			{
				return;
			}
			if (isshowmsg)
			{
				base.SetUrl("usercpcreaditstransferlog.aspx");
				base.SetMetaRefresh(5);
				base.SetShowBackLink(false);
				base.AddMsgLine("积分充值操作完成，充值成功后会发送站内通知告知");
				return;
			}
            //this.creditslogcount = CreditsLogs.GetCreditsLogRecordCount(this.userid);
            creditslogcount = CreditsLog.SearchCount(userid);
            BindItems(creditslogcount);
            //this.creditsloglist = CreditsLogs.GetCreditsLogList(16, this.pageid, this.userid);
            creditsloglist = CreditsLog.Search(userid, (pageid - 1) * 16, 16).ToDataTable(false);
		}
	}
}